package com.lc.railway.http.response;

import com.google.gson.annotations.SerializedName;

import java.util.ArrayList;
import java.util.List;

public class IndexnBean {


    private List<NavBean> nav;
    private List<IsShowBean> is_show;
    @SerializedName("class")
    private List<ClassBean> classX;

    private List<BannerBean> banner;
    private List<NewsArrBean> news_arr;
    private List<GggongshiBean> gggongshi;

    public List<GggongshiBean> getGggongshi() {
        return gggongshi;
    }

    public void setGggongshi(List<GggongshiBean> gggongshi) {
        this.gggongshi = gggongshi;
    }

    public List<NavBean> getNav() {
        return nav;
    }

    public void setNav(List<NavBean> nav) {
        this.nav = nav;
    }

    public List<IsShowBean> getIs_show() {
        return is_show;
    }

    public void setIs_show(List<IsShowBean> is_show) {
        this.is_show = is_show;
    }

    public List<ClassBean> getClassX() {
        return classX;
    }

    public void setClassX(List<ClassBean> classX) {
        this.classX = classX;
    }


    public List<BannerBean> getBanner() {
        return banner;
    }

    public void setBanner(List<BannerBean> banner) {
        this.banner = banner;
    }

    public List<NewsArrBean> getNews_arr() {
        return news_arr;
    }

    public void setNews_arr(List<NewsArrBean> news_arr) {
        this.news_arr = news_arr;
    }

    public static class NavBean {
        /**
         * id : 1
         * classname : 上级精神
         * linkurl : /home_news/lists?classid=11
         */

        private Integer id;

        public boolean isGrop() {
            return grop;
        }

        public void setGrop(boolean grop) {
            this.grop = grop;
        }

        private boolean grop;
        private String classname;
        private String linkurl;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getClassname() {
            return classname;
        }

        public void setClassname(String classname) {
            this.classname = classname;
        }

        public String getLinkurl() {
            return linkurl;
        }

        public void setLinkurl(String linkurl) {
            this.linkurl = linkurl;
        }
    }

    public static class IsShowBean {
        /**
         * id : 47
         * classid : 26
         * title : 关于推荐刘宝岩呈报公安部国庆安保先进个人的公示
         * picurl : uploads/20211029/c50cc35d3275e88bf088b1107ceb8c26.jpg
         */
        private Integer id;
        private Integer classid;
        private String title;
        private String picurl;
        public int viewType;
        public IsShowBean(String imageRes, String title, int viewType) {
            this.picurl = imageRes;
            this.title = title;
            this.viewType = viewType;
        }


        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public Integer getClassid() {
            return classid;
        }

        public void setClassid(Integer classid) {
            this.classid = classid;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getPicurl() {
            return picurl;
        }

        public void setPicurl(String picurl) {
            this.picurl = picurl;
        }
    }

    public static class ClassBean {
        /**
         * id : 13
         * classname : 警营风采
         * picurl : null
         * infotype : 2
         */

        private Integer id;
        private String classname;
        private Object picurl;
        private Integer infotype;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getClassname() {
            return classname;
        }

        public void setClassname(String classname) {
            this.classname = classname;
        }

        public Object getPicurl() {
            return picurl;
        }

        public void setPicurl(Object picurl) {
            this.picurl = picurl;
        }

        public Integer getInfotype() {
            return infotype;
        }

        public void setInfotype(Integer infotype) {
            this.infotype = infotype;
        }
    }

    public static class GggongshiBean {
        /**
         * id : 13
         * classname : 警营风采
         * picurl : null
         * infotype : 2
         */

        private Integer id;
        private String title;
        private Integer classid;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public Integer getClassid() {
            return classid;
        }

        public void setClassid(Integer classid) {
            this.classid = classid;
        }
    }

    public static class BannerBean {
        /**
         * id : 12
         * picurl : uploads/20211025/85d0b48adc9b7f97a998de59e60015f2.png
         * linkurl :
         */

        private Integer id;
        private String picurl;
        private String linkurl;
        public BannerBean(String imageRes ){
            this.picurl = imageRes;

        }

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getPicurl() {
            return picurl;
        }

        public void setPicurl(String picurl) {
            this.picurl = picurl;
        }

        public String getLinkurl() {
            return linkurl;
        }

        public void setLinkurl(String linkurl) {
            this.linkurl = linkurl;
        }
    }

    public static class NewsArrBean {
        /**
         * id : 9
         * classname : 公安新闻
         * linkurl :
         * infotype : 1
         * arr : [{"id":6,"classid":9,"title":"\t关于进一步发挥干部作用坚决打赢2020年春运攻坚战的通知","picurl":"uploads/20211028/47c035368ef1ab58a5d3ba02a7dd89ab.png","create_time":1635416710},{"id":4,"classid":9,"title":"\t哈尔滨：热血战严寒 奋进保安全 哈尔滨公安处强势启动春运安保攻坚战","picurl":"uploads/20211028/9227dc163fc30efc84534c05a938af26.jpg","create_time":1635416537},{"id":3,"classid":9,"title":"\t哈尔滨：公安部食品药品犯罪侦查局政委刘家伟深入哈尔滨站派出所开展走访慰问","picurl":"uploads/20211028/a942db3c8a8bfe3f75bdaaff3f4915d2.jpg","create_time":1635416482},{"id":2,"classid":9,"title":"第4期  哈尔滨铁路公安局集中开展春运首日宣传活动","picurl":"uploads/20211028/1b1d55455eea573fb1ec22e5e85f585c.jpg","create_time":1635416386},{"id":1,"classid":9,"title":"政委王剑锋到哈东站派出所检查工作","picurl":"","create_time":1635416086}]
         */

        private Integer id;
        private String classname;
        private String linkurl;
        private Integer infotype;
        private List<YaowenBean> arr;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getClassname() {
            return classname;
        }

        public void setClassname(String classname) {
            this.classname = classname;
        }

        public String getLinkurl() {
            return linkurl;
        }

        public void setLinkurl(String linkurl) {
            this.linkurl = linkurl;
        }

        public Integer getInfotype() {
            return infotype;
        }

        public void setInfotype(Integer infotype) {
            this.infotype = infotype;
        }

        public List<YaowenBean> getArr() {
            return arr;
        }

        public void setArr(List<YaowenBean> arr) {
            this.arr = arr;
        }
        public static class YaowenBean {
            /**
             * id : 6
             * classid : 9
             * title : 	关于进一步发挥干部作用坚决打赢2020年春运攻坚战的通知
             * picurl : uploads/20211028/47c035368ef1ab58a5d3ba02a7dd89ab.png
             * create_time : 1635416710
             */

            private Integer id;
            private Integer classid;
            private String title;
            private String picurl;
            private long create_time;

            public Integer getId() {
                return id;
            }

            public void setId(Integer id) {
                this.id = id;
            }

            public Integer getClassid() {
                return classid;
            }

            public void setClassid(Integer classid) {
                this.classid = classid;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPicurl() {
                return picurl;
            }

            public void setPicurl(String picurl) {
                this.picurl = picurl;
            }

            public long getCreate_time() {
                return create_time;
            }

            public void setCreate_time(long create_time) {
                this.create_time = create_time;
            }
        }
    }

    public static List<IndexnBean.IsShowBean> getTestData() {
        List<IndexnBean.IsShowBean> list = new ArrayList<>();
        list.add(new IndexnBean.IsShowBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png", "相信自己,你努力的样子真的很美", 1));
        list.add(new IndexnBean.IsShowBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png", "极致简约,梦幻小屋", 3));
        list.add(new IndexnBean.IsShowBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png", "极致简约,梦幻小屋", 3));
        list.add(new IndexnBean.IsShowBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png", "极致简约,梦幻小屋", 3));
        list.add(new IndexnBean.IsShowBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png", "极致简约,梦幻小屋", 3));

        return list;
    }
    public static List<IndexnBean.BannerBean> getTestData2() {
        List<IndexnBean.BannerBean> list = new ArrayList<>();
        list.add(new IndexnBean.BannerBean("https://bdqcptcom.oss-cn-qingdao.aliyuncs.com/adv/file/20201228/9bb714e6d441c87fe8d9e3e7f92e9baa.png"));


        return list;
    }
}
